package flutterdemo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息实体类
 */
@Data
@AllArgsConstructor
@ToString
public class Message implements Serializable {

    private static final long serialVersionUID = -6956947981866795431L;

    private Long id;
    private String messageContent;
    private String imageUrlList;
    private Long userType;
    private Date uploadTime;

    public Message() {
    }

    public Message(String messageContent, String imageUrlList, Long userType, Date uploadTime) {
        this.messageContent = messageContent;
        this.imageUrlList = imageUrlList;
        this.userType = userType;
        this.uploadTime = uploadTime;
    }
}
